<!--
 * @Author: xfworld
 * @Date: 2020-06-10 11:31:52
 * @LastEditors: xfworld
 * @LastEditTime: 2020-06-10 11:37:32
 * @Description: 
-->
<template>
  <div>
    <van-cell v-for="(item, index) in totalList" :key="index" :title="item.name">
      <template #default>
        <span v-if="item.value > 100"
          ><van-tag type="danger">{{ item.value }}</van-tag></span
        >
        <span v-else-if="item.value > 50"
          ><van-tag type="warning">{{ item.value }}</van-tag></span
        >
        <span v-else
          ><van-tag type="primary">{{ item.value }}</van-tag></span
        >
      </template>
    </van-cell>
  </div>
</template>
<script>
export default {
  name: "noticeTaskList",
  props: {
    totalList: {
      type: Array,
      default: () => []
    }
  }
};
</script>
